/**
 * Jaxson ajax
 *
 * Copyright Remedy Interactive, licensed under Apache version 2 license:
 *
 *  http://www.apache.org/licenses/LICENSE-2.0.html
 *
 * This notice must remain in all java source files.
 */
package org.jaxson.validation;

import java.io.Serializable;

import org.jaxson.validation.Validator.Scope;

import flexjson.JSON;

/**
 * @author Joe Maisel
 *
 */
@SuppressWarnings("serial")
public abstract class AbstractValidator implements Serializable{

	protected String property;
	protected Scope scope = Scope.MODEL;
	
	@JSON(include=false)
	public Scope getScope() {
		return scope;
	}

	public void setScope(Scope scope) {
		this.scope = scope;
	}

	public String getProperty() {
		return property;
	}

	public void setProperty(String property) {
		this.property = property;
	}
	
	public abstract boolean isValid( Object obj );
}
